
class DeviceTypeModel{
  String? id;
  String? name;
  String? code;
  bool? state;

  DeviceTypeModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    code = json['code'];
    state = json['state'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['id'] = id;
    data['name'] = name;
    data['code'] = code;
    data['state'] = state;
    return data;
  }
}